package com.lanou3g.ptp.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 创建人: 武奇
 * 创建事件: 2019/8/29
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class Excellent implements Serializable {

    private Long id;
    private Long studentId;
    private Long taskId;
    @JsonIgnore
    private String img;
    private String content;
    private Integer type;
    private Date createTime;
    private Date updateTime;
    private Integer status;

    private String[] imgs;

    public void setImg(String img) {
        this.img = img;
        if (img != null) {
            this.imgs = img.split(",");
        }
    }
}
